-- GENERATED SPELL FOR [Firecaller Radison] --


function spell0_2192(pUnit, Event) --@Crazed,Self--
pUnit:FullCastSpellOnTarget(5915,pUnit)
pUnit:RegisterEvent('Sorts_2192', 602, 1)
end

function spell1_2192(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(11969,pUnit)
pUnit:RegisterEvent('Sorts_2192', 2000, 1)
end

function spell2_2192(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2192', 3000, 1)
end

function Sorts_2192(pUnit, Event)
local choix_sorts_2192 = math.random(0, 2)
if choix_sorts_2192 == 0 then
pUnit:RegisterEvent('spell0_2192', 1, 1)
end
if choix_sorts_2192 == 1 then
pUnit:RegisterEvent('spell1_2192', 1, 1)
end
if choix_sorts_2192 == 2 then
pUnit:RegisterEvent('spell2_2192', 1, 1)
end
end

function mob2192_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2192', math.random(1500, 3000), 1)
end

function mob2192_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2192_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2192_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2192, 1, 'mob2192_Action')
RegisterUnitEvent(2192, 2, 'mob2192_Leave')
RegisterUnitEvent(2192, 3, 'mob2192_Kill')
RegisterUnitEvent(2192, 4, 'mob2192_Die')
